#ifndef PLAYLESSONVIDEO_H
#define PLAYLESSONVIDEO_H

#include <QDialog>
#include <Phonon/MediaObject>
#include <Phonon/AudioOutput>
#include <Phonon/VideoWidget>

namespace Ui {
class PlayLessonVideo;
}

class PlayLessonVideo : public QDialog
{
    Q_OBJECT
    
public:
    explicit PlayLessonVideo(QWidget *parent = 0);
    ~PlayLessonVideo();
    
private:
    Ui::PlayLessonVideo *ui;
    Phonon::MediaObject *media;
    Phonon::AudioOutput *ao;
    Phonon::VideoWidget *vw;

    QString fileName;

public slots:
    void playVideo();
    void stopVideo();
    void open();
};

#endif // PLAYLESSONVIDEO_H
